<div class="container">
	<?php echo form_open('account/loginaction','class="form-horizontal" role="form"');?>
	
		<div class="form-group">
			<label for='username' class='col-sm-1 control-label'><s>*</s>用户名 : </label>
			 <div class="col-sm-3">
				 <input type="text" class="form-control" name='username' placeholder="用户名">
				
			 </div>
		</div>
		
		<div class="form-group">
			  <label for='password'  class='col-sm-1 control-label'><s>*</s>密码 : </label>
			  <div class="col-sm-3">
				  <input type="text" class="form-control" name='password' placeholder="密码">
			  </div>
		 </div>
		 <?php
		 
		if($captchaconf['login_need']){
		?>
		 <div class="form-group">
			  <label for='captcha' class='col-sm-1 control-label'><s>*</s>验证码 : </label>
			  <div class="col-sm-2" >
				  <input type="text" class="form-control" name='captcha' placeholder="captcha">
			  </div>
			   <div class="col-sm-2" >
				  <span id='captcha'><?php echo $captcha;?></span>
			  </div>
		 </div>
		<script>

			$('#captcha').click(function (){
				get_captcha($(this),'app');
			});
		</script>
		<?php
			}
		 
		 ?>
		
		 
		<div class="form-group">
			<div class="col-sm-offset-1 col-sm-10">
			<input type='submit' class='btn btn-primary' name='submit' value='登录'>
			<input type='reset' class='btn btn-default' value='重填'>
			</div>
		</div>
	
	<?php echo form_close();?>
</div>
